import type * as User from '@/api/user/types/user'
import { request } from '@/utils/service'

export function queryUserInfo(data: User.queryUserInfoRequestData) {
  return request<User.queryUserInfoResponse>({
    url: '/queryUserInfo',
    method: 'post',
    data
  })
}

export function userFrozenUnfreeze(data: User.userFrozenUnfreezeRequestData) {
  return request<User.userFrozenUnfreezeResponse>({
    url: '/userFrozenUnfreeze',
    method: 'post',
    data
  })
}
export function queryUserInfoDetail(data: User.queryUserInfoDetailRequestData) {
  return request<User.queryUserInfoDetailResponse>({
    url: '/queryUserInfoDetail',
    method: 'post',
    data
  })
}
export function queryUserInfoDetailOrder(data: User.queryUserInfoDetailOrderRequestData) {
  return request<User.queryUserInfoDetailOrderResponse>({
    url: '/queryUserInfoDetailOrder',
    method: 'post',
    data
  })
}
/** 清除用户实名 */
export function cancelIdCardVerify(data: User.cancelIdCardVerifyRequestData) {
  return request<User.cancelIdCardVerifyResponse>({
    url: '/cancelIdCardVerify',
    method: 'post',
    data
  })
}
/** 赠送优惠券 */
export function sendCoupon(data: User.sendCouponRequestData) {
  return request<User.sendCouponResponse>({
    url: '/sendCoupon',
    method: 'post',
    data
  })
}
